<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.global" />
<import type="css" file="css.form" />
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
</head>
<body>
<div class="search"><b>修改流程</b></div>
<div id="form">
	<form name="form1" action="__APP__/WorkFlowSys/flow_type_save" method="post" onsubmit="return CheckForm();">
	<table>
		<tr>
			<td class="titlename">流程分类：</td>
			<td>
			<select name="sort_id" >
			<volist name="data_sort" id="vo">
	          <option value="{$vo.sort_id}" <if condition="$vo['sort_id'] eq $data_type['sort_id']">selected</if> >{$vo.sort_name}</option>
			</volist>
			</td>
		</tr>
		<tr>
			<td class="titlename">流程排序：</td>
			<td><input type="text" name="type_no" size="4" value="{$data_type.type_no}"> &nbsp;&nbsp;控制同一分类下流程的排序</td>
		</tr>
		<tr>
			<td class="titlename">流程名称：</td>
			<td><input type="text" name="type_name" value="{$data_type.type_name}"></td>
		</tr>
		<tr>
			<td class="titlename">流程表单：</td>
			<td>
			<select name="form_id">
				<volist name="data_form" id="vo">
		          <option value="{$vo.form_id}" <if condition="$vo['form_id'] eq $data_type['form_id']">selected</if> >{$vo.form_name}</option>
				</volist>
        	</select>
			</td>
		</tr>
		<tr>
			<td class="titlename">流程说明：</td>
			<td>
			<script id="editor" type="text/plain" name="type_explain" style="width:98%;height:250px;">{$data_type.type_explain}</script>
        	</td>
		</tr>
	</table>
	<div style="padding: 10px 155px;">
		<input type="hidden" name="type_id" value="{$data_type.type_id}" />
        <input type="submit" value="修改" class="submit">
    </div>
	</form>
</div>
</body>
<script type="text/javascript">
var ue = UE.getEditor('editor');
parent.frames['list'].refresh();
function CheckForm(){
	if($("input[name='type_name']").val() == ""){ alert("流程名称不能为空");return false; }
}
</script>
</html>